package Day2025_03_28;

import java.util.Scanner;

public class Demo03 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        String[] ss = s.split(" ");
        StringBuffer ret = new StringBuffer();
        for (int i = ss.length - 1; i >= 0; i--) {
            ret.append(ss[i]);
            if (i != 0) ret.append(" ");
        }
        System.out.println(ret.toString());
    }
}
